package pth.authentication.service;

import pth.authentication.context.RbacContext;
import vin.pth.base.exception.authentication.AuthenticationException;

/**
 * RBAC权限控制服务.
 *
 * @author cocoon
 */
public interface RbacService {

  /**
   * 判断用户是否有权限访问服务
   *
   * @param rbacContext RbacContext
   * @throws AuthenticationException 鉴权失败异常
   */
  void checkPermission(RbacContext rbacContext) throws AuthenticationException;

}
